import { navbar } from "vuepress-theme-hope";
import { version } from "../meta.js";

export const zhNavbar = navbar([
  {
    text: "html",
    icon: "fa6-solid:book",
    prefix: "/zh/html/",
    children: [
      {
        text: "基础属性",
        children: [
          "字体",
        ],
      },
    ],
  },
  {
    text: "html/css",
    icon: "fa6-solid:book",
    prefix: "/zh/css/",
    children: [
      {
        text: "常用布局",
        children: [
          "初始化",
          "选择器",
          "属性",
          "文字-字体",
          "图片-背景",
          "scss-less",
          "布局-grid",
          "布局-table",
          "css方法",
          "兼容性",
          "滚动条",
          "相关链接",
        ],
      },
    ],
  },
  {
    text: "javascript",
    icon: "fa6-solid:book",
    prefix: "/zh/javascript/",
    children: [
      {
        text: "基础类型",
        children: [
          "数组/数组方法",
          "数组/数组排序",
          "数组/数组过滤",
        ],
      },
      {
        text: "对象",
        children: [
          "对象",
          "时间",
        ],
      },
      {
        text: "其它",
        children: [
          "相关链接",
        ],
      },
    ],
  },
  {
    text: "Vue2",
    icon: "fa6-solid:book",
    prefix: "/zh/vue2/",
    children: [
      {
        text: "基础知识",
        children: [
          "指令",
          "插槽",
          "监听器",
          "计算属性",
          "方法",
          "插件",
        ],
      },
    ],
  },
  {
    text: "Vue3",
    icon: "fa6-solid:book",
    prefix: "/zh/vue3/",
    children: [
      {
        text: "基础知识",
        children: [
          "窗口",
          "插槽",
          "路由",
          "问题",
          "组合式API",
          "相关链接",
        ],
      },
      {
        text: "组件",
        children: [
          "组件通信",
          "组件通信 Vuex",
          "组件通信 Pinia",
        ],
      },
      {
        text: "周边",
        children: [
          "TS",
        ],
      },
      {
        text: "UI库 element-plus",
        children: [
          "el-notification",
        ],
      },
    ],
  },
  {
    text: "uniapp",
    icon: "fa6-solid:book",
    prefix: "/zh/uniapp/",
    children: [
      {
        text: "基础知识",
        children: [
          "生命周期",
          "插件",
        ],
      },
      {
        text: "配置",
        children: [

        ],
      },
    ],
  },
  {
    text: "uniapp3",
    icon: "fa6-solid:book",
    prefix: "/zh/uniapp3/",
    children: [
      {
        text: "配置",
        children: [
          "配置_vite.config",
        ],
      },
    ],
  },
  {
    text: "Electron",
    icon: "fa6-solid:book",
    prefix: "/zh/electron/",
    children: [
      {
        text: "基础知识",
        children: [
          "基础配置",
          "官方接口",
          "相关方法",
          "配置-vue.config",
          "相关链接",
        ],
      },
    ],
  },
  {
    text: "Node",
    icon: "fa6-solid:book",
    prefix: "/zh/node/",
    children: [
      {
        text: "包管理器工具",
        children: [
          "包管理工具",
          "npm",
          "nvm",
          "pnpm",
          "yarn",
        ],
      },
    ],
  },
  {
    text: "HarmonyOS",
    icon: "fa6-solid:book",
    prefix: "/zh/HarmonyOS/",
    children: [
      {
        text: "基础知识",
        children: [
          "基础入门",
          "属性",
          "组件",
          "路由",
        ],
      },
    ],
  },
  {
    text: "工具",
    icon: "fa6-solid:book",
    prefix: "/zh/工具/",
    children: [
      {
        text: "常用工具",
        children: [
          "Typora",
          "vuePress",
          "pdf",
          "图像",
        ],
      },
    ],
  },
  {
    text: "前端进阶",
    icon: "fa6-solid:book",
    prefix: "/zh/前端进阶/",
    children: [
      {
        text: "集合",
        children: [
          "相关链接",
        ],
      },
    ],
  },
  {
    text: "参考",
    icon: "fa6-solid:book",
    prefix: "/zh/reference/",
    children: [
      {
        text: "VuePress",
        children: [
          "cli",
          "config",
          "frontmatter",
          "components",
          "plugin-api",
          "theme-api",
          "client-api",
          "node-api",
        ],
      },
      {
        text: "打包工具",
        prefix: "bundler/",
        children: ["vite", "webpack"],
      },
      {
        text: "默认主题",
        prefix: "default-theme/",
        children: [
          "config",
          "frontmatter",
          "components",
          "markdown",
          "styles",
          "extending",
        ],
      },
    ],
  },
  {
    text: "插件",
    icon: "fa6-solid:plug",
    prefix: "/zh/reference/plugin/",
    children: [
      {
        text: "常用功能",
        children: [
          "back-to-top",
          "container",
          "external-link-icon",
          "google-analytics",
          "medium-zoom",
          "nprogress",
          "register-components",
        ],
      },
      {
        text: "内容搜索",
        children: ["docsearch", "search"],
      },
      {
        text: "PWA",
        children: ["pwa", "pwa-popup"],
      },
      {
        text: "语法高亮",
        children: ["prismjs", "shiki"],
      },
      {
        text: "主题开发",
        children: [
          "active-header-links",
          "git",
          "palette",
          "theme-data",
          "toc",
        ],
      },
    ],
  },
  {
    text: "了解更多",
    icon: "fa6-solid:feather",
    children: [
      {
        text: "深入",
        prefix: "/zh/advanced/",
        children: [
          "architecture",
          "plugin",
          "theme",
          {
            text: "Cookbook",
            link: "cookbook/",
          },
        ],
      },
      {
        text: "其他资源",
        children: [
          "/zh/contributing",
          {
            text: "Awesome VuePress",
            link: "https://github.com/vuepress/awesome-vuepress",
          },
          {
            text: "VuePress 市场",
            link: "https://marketplace.vuejs.press/zh/",
          },
        ],
      },
    ],
  },
]);
